/*
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details:
 * http://www.gnu.org/copyleft/lesser.html#TOC3
 */
package com.simplemonkey;

public interface IMouseListener {

	/**
	 * Called when a mouse moves off of this widget
	 */
	public void mouseOff();

	/**
	 * Called when a mouse moves over this widget.
	 * @param x
	 * @param y
	 */
	public void mouseMove(float x, float y); 

	/**
	 * Called when a mouse button is pressed while on this widget
	 * @param pressed
	 * @param button The button pressed (0: left, 1: right, 2:middle);
	 * @param x
	 * @param y
	 */
	public void mousePress(boolean pressed, int button,float x, float y);
}
